/** *******************************************************************
 * FlexDatabaseManager
 * Copyright (c) 2008 Jonnie Spratley. All Rights Reserved.
 * @author  Jonnie Spratley
 * @contact jonniespratley@gmail.com
 * @internal
 ******************************************************************* */
package com.jonniespratley.flexdatabasemanager.events.tables
{
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.jonniespratley.flexdatabasemanager.vo.*;
	
	import flash.events.Event;
		
	public final class SelectedTableStatusEvent extends CairngormEvent
	{
		public static const SELECTED_TABLE_STATUS_EVENT:String = "SELECTED_TABLE_STATUS_EVENT";
		
		public var aTable:TableStatusVO;
		public var aDatabase:DatabaseVO;

		public function SelectedTableStatusEvent( aDatabase:DatabaseVO, aTable:TableStatusVO )
		{
			super( SELECTED_TABLE_STATUS_EVENT );
			this.aDatabase = aDatabase;
			this.aTable = aTable;
			
		}
		
		override public function clone():Event
		{
			return new SelectedTableStatusEvent( aDatabase, aTable );
		}
	}
}